Skip to content

fix(github): pace GraphQL porcelain commands against graphql quota - #2280

Merged
dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_fifteen
Oct 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_fifteen

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Rate-limit pacing previously classified GitHub porcelain commands such as pr checks, pr list, issue list, and release list as core REST traffic. It also checked for substrings like graphql and search/ across arguments, which caused false positives on repository names, paths, and comments.

This change:

  • Classifies GraphQL-backed porcelain commands and groups with dedicated tables in constants (CONST_GH_GRAPHQL_PORCELAIN_COMMANDS, CONST_GH_GRAPHQL_GROUPS).
  • Refactors endpoint detection to inspect structured API path segments without substring checks.
  • Sets _scripted_gh test harness in tests/test_github_client.py to supply both core and graphql quotas.

Fail-to-Pass Evidence

uv run devops ci fail-to-pass --base origin/main passed:

4 failed on base (4 failed and 220 passed in tests/test_github_client.py, tests/test_github_rate_limiter.py; 0 errored).

Verification

  • uv run devops ci fail-to-pass --base origin/main
  • uv run devops ci test tests/test_github_client.py tests/test_github_rate_limiter.py
  • uv run devops ci
  • uv run devops openspec check

Change: openspec/changes/archive/2026-10-26-1415-graphql-porcelain-pacing

Closes #1415

Rate-limit pacing previously classified GitHub porcelain commands such as
pr checks, pr list, issue list, and release list as core REST traffic.
It also checked for substrings like graphql and search across arguments,
which caused false positives on repository names, paths, and comments.

Classify GraphQL-backed porcelain commands and groups with dedicated tables
in constants. Refactor endpoint detection to inspect structured API path
segments without substring checks.

Closes #1415
@dan-petty
dan-petty marked this pull request as ready for review October 26, 2026 03:19
@dan-petty
dan-petty merged commit 7f1145a into main Oct 26, 2026
17 checks passed
@dan-petty
dan-petty deleted the implement_issue_fourteen_fifteen branch October 26, 2026 03:19
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.1](v0.6.0...v0.6.1)
(2026-10-26)


### Bug Fixes

* **ai:** the rag index keeps each project's chunks apart, deletes a
removed file's points before forgetting it, and refills a project its
collection lost
([#2283](#2283))
([ad7c38b](ad7c38b))
* **cli:** repos sync and branches sync report a failed fetch or pull
instead of printing success
([#2276](#2276))
([bf72be1](bf72be1))
* **github:** pace GraphQL porcelain commands against graphql quota
([#2280](#2280))
([7f1145a](7f1145a)),
closes [#1415](#1415)
* **roadmap:** intake keeps the fields a person set on a card added
during its planning
([#2278](#2278))
([21654c6](21654c6))
* **roadmap:** intake leaves the sub-issues of a candidate's source out
of the duplicate check
([#2275](#2275))
([214028c](214028c))
* **telemetry:** wait for abandoned dispatch workers before a test ends
([#2282](#2282))
([51e8e61](51e8e61))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(github): run_gh paces gh pr checks, gh pr list and gh issue list as core REST though gh sends them as GraphQL

1 participant